/*
 * @Author: 无聊 7989314+Hwz1997@user.noreply.gitee.com
 * @Date: 2025-09-03 01:12:33
 * @LastEditors: 无聊 7989314+Hwz1997@user.noreply.gitee.com
 * @LastEditTime: 2025-10-21 14:36:16
 * @FilePath: \keep_motion_api\routes\sport.route.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
const express = require('express');
const router = express.Router();

const { sportType, sportRecords, trainingPlans, sportAdvices, sportActivities } = require('@/controllers/admin/sport');
router.get('/sport-types', sportType.getSportType);
router.post('/sport-types', sportType.createSportType);
router.put('/sport-types/:id', sportType.updateSportType);
router.delete('/sport-types/:id', sportType.deleteSportType);
	
router.get('/sport-records', sportRecords.getSportRecords);
router.post('/sport-records', sportRecords.createSportRecords);
router.put('/sport-records/:id', sportRecords.updateSportRecords);
router.delete('/sport-records/:id', sportRecords.deleteSportRecords);
	
router.get('/training-plans', trainingPlans.getTrainingPlans);
router.post('/training-plans', trainingPlans.createTrainingPlans);
router.put('/training-plans/:id', trainingPlans.updateTrainingPlans);
router.patch('/training-plans/recommend/:id', trainingPlans.recommendTrainingPlans);
	
router.get('/sport-advices', sportAdvices.getSportAdvices);
router.post('/sport-advices', sportAdvices.createSportAdvices);
router.put('/sport-advices/:id', sportAdvices.updateSportAdvices);
	
router.get('/sport-activities', sportActivities.getSportActivities);
router.post('/sport-activities', sportActivities.createSportActivities);
router.put('/sport-activities/:id', sportActivities.updateSportActivities);
router.get('/activity-participants', sportActivities.getActivityParticipants);

module.exports = router;